<?php
function smarty_function_pr($params, $template)
{
    if(!isset($params['value']))return;
    echo ('<pre>');
    print_r($params['value']);
    echo ('</pre>');
} 

?>